evaluate

public final static XPathResult evaluate(Node $self, XPathExpression expression)
public final static XPathResult evaluate(Node $self, XPathExpression expression)

Evaluates the given expression for the node and returns XPathResult of the XPathResultType.ANY type.

Since

8.0.0

Throws

if this method fails to evaluate the expression.

if this node is closed.


public final static XPathResult evaluate(Node $self, XPathExpression expression, XPathResultType type)
public final static XPathResult evaluate(Node $self, XPathExpression expression, XPathResultType type)

Evaluates the given expression for the node and returns XPathResult of the given type.

Since

8.0.0

Throws

if this method fails to evaluate the expression or return a result of the given type.

if this node is closed.